$success: #52c41a;
$warning: #e6a23c;
$info: #909399;

.sps-icon-select {
  .selected-icon {
    margin-right: 5px;
    font-weight: bold;
  }
}

.sps-icon-select-modal {
  .modal-content {
    margin-top: 5px;
    height: 350px;
    overflow-y: auto;
    .icon-box {
      display: inline-block;
      width: 200px;
      text-align: center;
      margin-top: 10px;
      .sps-icon {
        cursor: pointer;
      }
      .icon-Name {
        margin-top: 5px;
        font-weight: bold;
        font-size: 12px;
      }
    }
  }
}

// sps-icon
.ant-btn > .sps-icon {
  line-height: 1;
}
.ant-btn .sps-icon {
  transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-btn > .sps-icon + span,
.ant-btn > span + .sps-icon {
  margin-left: 8px;
}

.sps-form {
  &-actions {
    text-align: right;
    .ant-btn {
      margin-left: 10px;
    }
  }
}

.sps-btn-success {
  color: $success;
  background: #fff;
  border-color: $success;
  &:hover,
  &:focus {
    color: $success;
    background: #fff;
    border-color: $success;
  }
  &.ant-btn-primary {
    color: #fff;
    background: $success;
    border-color: $success;
    text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px #0000000b;
  }
  &.ant-btn-text {
    color: $success;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &.ant-btn-link {
    color: $success;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &[disabled] {
    color: #00000040;
    background: #f5f5f5;
    border-color: #d9d9d9;
    text-shadow: none;
    box-shadow: none;
  }
  &.ant-btn-background-ghost {
    color: $success;
    background: transparent;
    border-color: $success;
    text-shadow: none;
  }
}

.sps-btn-warning {
  color: $warning;
  background: #fff;
  border-color: $warning;
  &:hover,
  &:focus {
    color: $warning;
    background: #fff;
    border-color: $warning;
  }
  &.ant-btn-primary {
    color: #fff;
    background: $warning;
    border-color: $warning;
    text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px #0000000b;
  }
  &.ant-btn-text {
    color: $warning;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &.ant-btn-link {
    color: $warning;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &[disabled] {
    color: #00000040;
    background: #f5f5f5;
    border-color: #d9d9d9;
    text-shadow: none;
    box-shadow: none;
  }
  &.ant-btn-background-ghost {
    color: $warning;
    background: transparent;
    border-color: $warning;
    text-shadow: none;
  }
}

.sps-btn-info {
  color: $info;
  background: #fff;
  border-color: $info;
  &:hover,
  &:focus {
    color: $info;
    background: #fff;
    border-color: $info;
  }
  &.ant-btn-primary {
    color: #fff;
    background: $info;
    border-color: $info;
    text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px #0000000b;
  }
  &.ant-btn-text {
    color: $info;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &.ant-btn-link {
    color: $info;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  &[disabled] {
    color: #00000040;
    background: #f5f5f5;
    border-color: #d9d9d9;
    text-shadow: none;
    box-shadow: none;
  }
  &.ant-btn-background-ghost {
    color: $info;
    background: transparent;
    border-color: $info;
    text-shadow: none;
  }
}

.sps-table-select-modal {
  .table-radio-group,
  .table-checkbox-group {
    width: 100%;
  }
}

.sps-dialog-table {
  &-search {
    @apply mb-2;
  }
  &-footer {
    @apply text-right;
  }
}
